home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18315 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: ix.netcom.com!news
  2. From: Bradd W. Szonye <bradds@ix.netcom.com>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: RE: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 19 Apr 1996 09:05:00 GMT
  6. Organization: Netcom
  7. Message-ID: <01bb2dcf.9445c060$c6c2b7c7@Zany.localhost>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.829079393@schonberg> <4kf5mrINN47r@keats.ugrad.cs.ubc.ca> <dewar.829135457@schonberg> <4kgmlpINN7aj@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: det-mi6-06.ix.netcom.com
  10. X-NETCOM-Date: Fri Apr 19  4:05:00 AM CDT 1996
  11. X-Newsreader: Microsoft Internet News
  12.  
  13. Do what I do in this situation. Think about the problem and try to decide
  14. what makes the most sense. If it doesn't make sense, look it up. If your
  15. first attempt doesn't work, look it up. If you don't find the answer in
  16. you compiler's manuals (note the *comiler's*, not the standards, because
  17. few compilers are all that conformant), use a different function. Write
  18. your own. Write a letter to your senator. Whatever.
  19.  
  20. For comparison, consider other functions that fill buffers, like sprintf
  21. or scanf. They don't take a byte count at all. They just assume that the
  22. programmer has the sense to provide a buffer big enough for the data you
  23. ask for. Providing a length argument doesn't change this kind of common
  24. sense.
  25.  
  26. Bradd
  27.  
  28.  
  29.